package com.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Diagnose {
    int Id;
    String illness;
    String patientAccount;
    String workId;
    Date signDate;
    int registerDocId;

    public void setRegisterDocId(int registerDocId) {
        this.registerDocId = registerDocId;
    }

    public int getRegisterDocId() {
        return registerDocId;
    }

    public Diagnose(String illness, String patientAccount, String workId, Date signDate, int registerDocId) {
        this.illness = illness;
        this.patientAccount = patientAccount;
        this.workId = workId;
        this.signDate = signDate;
        this.registerDocId = registerDocId;
    }

    public Diagnose(String illness, String patientAccount, String workId, Date signDate) {
        this.illness = illness;
        this.patientAccount = patientAccount;
        this.workId = workId;
        this.signDate = signDate;
    }

    public Diagnose() {
    }

    public Diagnose(int id, String illness, String patientAccount, String workId, Date signDate) {
        Id = id;
        this.illness = illness;
        this.patientAccount = patientAccount;
        this.workId = workId;
        this.signDate = signDate;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getIllness() {
        return illness;
    }

    public void setIllness(String illness) {
        this.illness = illness;
    }

    public String getPatientAccount() {
        return patientAccount;
    }

    public void setPatientAccount(String patientAccount) {
        this.patientAccount = patientAccount;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

    public String getSignDateFormat(){
        SimpleDateFormat sdf = new SimpleDateFormat();// 格式化时间
        sdf.applyPattern("yyyy-MM-dd HH:mm:ss");// a为am/pm的标记
        return sdf.format(this.signDate);
    }
}
